Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: mobile interactions with input actions #196

Merged
merged 6 commits into from
Jan 26, 2024
Merged

Conversation

kuruk-mm
Copy link
Member

@kuruk-mm kuruk-mm commented Jan 25, 2024

Fix #149

  • is_mobile moved to Rust DclGlobal.rs, and set from Global.gd
  • Fix interactions bugs
  • Add icons, and effect to pressing a interaction

@kuruk-mm kuruk-mm changed the title Feat/interactions feat: interactions Jan 25, 2024
@kuruk-mm kuruk-mm marked this pull request as ready for review January 25, 2024 22:12
@kuruk-mm kuruk-mm changed the title feat: interactions feat: mobile interactions with input actions Jan 25, 2024
Copy link
Collaborator

@leanmendoza leanmendoza left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, just some comments.

@@ -13,13 +13,17 @@ func set_pointer_data(interacts_array: Array):
child.queue_free()
var i = 0
for interact in interacts_array:
if i >= angles.size():
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this discard the remaining interactions?

Copy link
Member Author

@kuruk-mm kuruk-mm Jan 26, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. It avoids a crash. In the Foundation Client is crashing. And Godot was crashing too due to not having enough angles.
There is no limit to how many tooltip interactions you can have from SDK7. So the Explorer having a hard limit of 5 it's more than ok for me at least.

godot/src/global.gd Outdated Show resolved Hide resolved
@kuruk-mm kuruk-mm merged commit 13ee7c9 into main Jan 26, 2024
3 checks passed
@kuruk-mm kuruk-mm deleted the feat/interactions branch January 26, 2024 15:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Mobile Interactions (Primary/Secondary)
2 participants